import { Navigate, useRoutes } from "react-router-dom";
import Login from "@/pages/login";

// const metaRouters = import.meta.globEager("./modules/*.tsx");

export const rootRouter = [
    {
		path: "/",
		element: <Navigate to="/login" />
	},
    {
        path:"/login",
        element:<Login />,
        mate:{
            title:"login",
            key:"login"
        }
    }
];

const Router = () =>{
    const routes = useRoutes(rootRouter);
    return routes;
}

export default Router;
